In DOORS 8.2, I need to display who deleted some objects and when. My starting point is the following code (which works):
History h
HistoryType ht
for h in obj do
{
ht = h.type
hd = h.date
ha = h.author
if (ht == deleteObject)
{
display(hd "\n" ha)
}
}
History h
HistoryType ht
for h in obj do
{
ht = h.type
hd = h.date
ha = h.author
if (ht == deleteObject)
{
display(ha "\n" hd)
}
}
mcnairk - Fri Jul 13 15:34:41 EDT 2012 |
Re: Displaying deletion history in DXL layout column
There will be others who can explain this better in "SW speak" than I can, but the problem is related to your variable "hd" being of type date. The DXL "display" function is defined as a string type function. However, there is a subtle way that non string type data like variable "hd" can be converted to a string within string defined functions like "display".
History h
HistoryType ht
for h in obj do
{
ht = h.type
hd = h.date
ha = h.author
if (ht == deleteObject)
{
display(ha "\n" hd"")
}
}
Paul Miller |
Re: Displaying deletion history in DXL layout column -Louie |
Re: Displaying deletion history in DXL layout column llandale - Sat Jul 14 20:30:27 EDT 2012 |
Re: Displaying deletion history in DXL layout column SystemAdmin - Sat Jul 14 02:13:17 EDT 2012
There will be others who can explain this better in "SW speak" than I can, but the problem is related to your variable "hd" being of type date. The DXL "display" function is defined as a string type function. However, there is a subtle way that non string type data like variable "hd" can be converted to a string within string defined functions like "display".
History h
HistoryType ht
for h in obj do
{
ht = h.type
hd = h.date
ha = h.author
if (ht == deleteObject)
{
display(ha "\n" hd"")
}
}
Paul Miller |